package com.sky.controller.admin;

import com.sky.dto.OrdersPageQueryDTO;
import com.sky.entity.Orders;
import com.sky.mapper.OrderMapper;
import com.sky.result.Result;
import com.sky.vo.OrderSubmitVO;
import com.sky.vo.OrderVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("admin/order")
public class OrderControllerWyx {

    @Autowired
    private OrderMapper orderMapper;
   // @GetMapping("/conditionSearch")

    public Result<OrderVO> wyx3(OrdersPageQueryDTO ordersPageQueryDTO){
       Orders orders=new Orders();

       orders=orderMapper.getByNumber(ordersPageQueryDTO.getNumber());

        OrderVO vo=new OrderVO();
        System.out.println("订单号是："+ordersPageQueryDTO.getNumber());
        System.out.println("订单是："+orders);
        return Result.success(vo);
    }


}
